Skip to content

fix(tui): allow native text selection/copy by default; add --mouse flag#10

Merged
jkyberneees merged 3 commits into
mainfrom
fix/tui-copy
Jul 26, 2026
Merged

fix(tui): allow native text selection/copy by default; add --mouse flag#10
jkyberneees merged 3 commits into
mainfrom
fix/tui-copy

Conversation

@jkyberneees

@jkyberneees jkyberneees commented Jul 26, 2026

Copy link
Copy Markdown
Contributor
  • Disables tea.WithMouseCellMotion() by default so terminal click-drag selection and copy work.\n- Adds a --mouse flag for users who prefer mouse-wheel scrolling.\n- Refactors CLI parsing/program options so they are unit-testable.\n- Adds tests for default parsing, --mouse, extra args, unknown flags, help, and program-option counts.\n- Updates README usage examples and key bindings.

… by default

Mouse reporting (tea.WithMouseCellMotion) captures terminal mouse events
and prevents standard click-drag selection and copy. Keep mouse support
off by default and add a --mouse flag for users who prefer wheel scrolling.

- add --mouse CLI flag
- only enable WithMouseCellMotion when --mouse is set
- update README usage examples and key bindings
- Extract parseConfig and buildProgramOptions so they are unit-testable.
- Cover default parsing, --mouse, extra args after --, unknown flags, and help.
- Verify program option counts for default and mouse-enabled modes.
@jkyberneees jkyberneees changed the title fix/tui copy fix(tui): allow native text selection/copy by default; add --mouse flag Jul 26, 2026
@jkyberneees
jkyberneees merged commit 883482c into main Jul 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant